<template>
  <div class="top">
    <van-nav-bar :title="title" left-text="返回" left-arrow @click-left="$router.go(-1)" />
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    }
  },
  data () {
    return {}
  }
}
</script>

<style lang="scss" scoped>
.top {
  height: 46px;
  width: 100%;
  background-color: orange;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
}
/deep/ .van-nav-bar {
  background-color: orange;
  color: white;
}
/deep/ .van-nav-bar__text {
  color: white;
}
/deep/ .van-nav-bar .van-icon {
  color: white;
}
/deep/ .van-nav-bar__title {
  color: white;
}
</style>
